import request from '@/utils/request.js'


// 新增公告
export function addNotice(param) {
    return request({
        method: 'POST',
        url: `/app/announcement/add`,
        data: param
    })
}

// 分页公告
export function getNoticeList(param) {
    return request({
        method: 'POST',
        url: `/app/announcement/announcementList`,
        data: param
    })
}

// 删除
export function delNotice(param) {
    return request({
        method: 'POST',
        url: `/app/announcement/del`,
        data: param
    })
}

// 获取公告详情
export function announcementById(param) {
  return request({
    url: '/app/announcement/announcementById',
    requiredAuth: false,
    method: 'POST',
	data: param
  })
}

// 公告上传图片
export function uploadImgs(param) {
    return request({
        method: 'POST',
        url: `/app/common/upload`,
        data: param
    })
}

// 公告上传图片
export function editNotice(param) {
    return request({
        method: 'POST',
        url: `/app/announcement/edit`,
        data: param
    })
}

// 中标公告
export function zhongbiaoAnnouncementList(param) {
    return request({
        method: 'POST',
        url: `/app/zhongbiaoAnnouncement/zhongbiaoAnnouncementList`,
        data: param
    })
}

// 获取中标公告详情
export function zhongbiaoAnnouncementById(param) {
    return request({
        method: 'POST',
        url: `/app/zhongbiaoAnnouncement/zhongbiaoAnnouncementById`,
        data: param
    })
}

// 获取采购寻源列表 
export function xunyuanAnnouncementList(param) {
    return request({
        method: 'POST',
        url: `/app/xunyuanAnnouncement/xunyuanAnnouncementList`,
        data: param
    })
}
// 通知待办
export function getsysMessageList(param) {
    return request({
        method: 'POST',
        url: `/app/sysMessage/sysMessageList`,
        data: param
    })
}
// 待办详情
export function getsysMessageDetail(param) {
    return request({
        method: 'POST',
        url: `/app/sysMessage/sysMessageById`,
        data: param
    })
}

// 获取协议富文本
export function xieyilist(param) {
    return request({
        method: 'POST',
        url: `/app/xieyi/list`,
        data: param
    })
}
// 
export function addXieyi(param) {
    return request({
        method: 'POST',
        url: `/app/xieyi/add`,
        data: param
    })
}
export function editXieyi(param) {
    return request({
        method: 'POST',
        url: `/app/xieyi/edit`,
        data: param
    })
}

export function xunyuanAnnouncementById(param) {
    return request({
        method: 'POST',
        url: `/app/xunyuanAnnouncement/xunyuanAnnouncementById`,
        data: param
    })
}










